<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>充值</title>
    <link href="css/swiper.min.css" rel="stylesheet"/>
    <link href="css/public.css" rel="stylesheet"/>
    <link href="css/main.css" rel="stylesheet"/>
    <link href="css/style.css" rel="stylesheet"/>

	<script src="./js/jquery-1.9.1.js"></script>

	<script src="js/mobile-util.js"></script>
    <script src="js/public.js"></script>
    <script src="../mifiadmin/js/common.js"></script>
	<script>
		/*获取url参数*/
		function getUrlParam(name) {
			var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
			var r = window.location.search.substr(1).match(reg);  //匹配目标参数
			if (r != null) return unescape(r[2]); return null; //返回参数值
		}

		/*获取url参数end*/
	</script>

</head>
<body>

<div class="loading" >
    <img src="img/loading.gif">
</div>

</body>

<script>
	var sn1=getUrlParam("device_sn");
	
	if(sn1 == ""){
		alert("请重新扫码或换个设备二维码");
		window.opener=null;
		window.open('','_self');
		window.close();
	}else{
		var url2=url+"/mobile/index.html?device_sn="+sn1;

		window.location.href=url+"/Mobile/Userapi/weixin_login?url="+url2;
		// var cce;
		// cee = setTimeout(function(){
		// 	clearTimeout(cce);
		//
		// }, 3000);
	}




</script>


</html>
